package com.example.iotmanagerment26.domain;

import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 作者：太难猫
 * 创建时间： 2025/6/13 17:20
 */
@Component
public class Room {
    private Integer id;
    private String name; // 顶层name字段
    private List<RoomDevice> roomDevice;
    private List<RoomUser> roomUser;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<RoomDevice> getRoomDevice() {
        return roomDevice;
    }

    public void setRoomDevice(List<RoomDevice> roomDevice) {
        this.roomDevice = roomDevice;
    }

    public List<RoomUser> getRoomUser() {
        return roomUser;
    }

    public void setRoomUser(List<RoomUser> roomUser) {
        this.roomUser = roomUser;
    }

    @Override
    public String toString() {
        return "Room{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", roomDevice=" + roomDevice +
                ", roomUser=" + roomUser +
                '}';
    }
}
